<?php
namespace Home\Model;
use Think\Model;

/**
* 
*/
class CardTypeModel extends Model
{

    // function get_cardtype()
    // {
    //     $result = $this->field('*')->select();
    //     //dump($result);

    //     return $result;
    // }

    function get_typename($type_id)
    {
    	$field = array(
                'type_id' => $type_id
        );
        //$type_name = $this->getField('type_name',$field);//查询某个字段的值
        $type_name = $this->where($field)->getField('type_name');
        return $type_name;
    }


}